import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('../views/HomeView.vue'),
    },
    {
      path: '/category',
      name: 'category',
      component: () => import('../views/CategoryView.vue'),
    },
    {
      path: '/search',
      name: 'search',
      component: () => import('../views/SearchView.vue'),
    },
    {
      path: '/searchList',
      name: 'searchList',
      component: () => import('../views/SearchListView.vue'),
    },
    {
      path: '/clip',
      name: 'clip',
      component: () => import('@/components/index/Clip.vue'),
    },
    {
      path: '/mall',
      name: 'mall',
      component: () => import('../views/MallView.vue'),
    },
    {
      path: '/goods-detail/:id',
      name: 'goods-detail',
      component: () => import('../views/GoodsDetailView.vue'),
    },
    {
      path: '/live',
      name: 'live',
      component: () => import('../views/LiveView.vue'),
    },
    {
      path: '/my',
      name: 'my',
      component: () => import('../views/MyView.vue'),
    },
  ],
})

export default router
